package server.net.handler;

import java.nio.ByteBuffer;
import server.net.Client;

/**
 * 
 * This is an interface for a packet handler
 *
 * @author Vincent Tsuei
 * @version 2012-11-16
 */
public interface ServerPacketHandler {
    
    /**
     * Processes the packet.
     * 
     * Return 0 if successful.
     * Return less than 0 for error state.
     * Encode error states as a static field.
     */
    public int processPacket(Client client, ByteBuffer packet);
}
